#include <iostream>
#include <vector>
#include <cmath>
using namespace std;

int main() {
    int n;
    while (cin >> n)
    {
        cout << n << " = ";
        vector<int> tmp;
        while (n != 1)
            for (int i = 2; n > 1; ++i)
            {
                while (n % i == 0)
                {
                    tmp.push_back(i);
                    n /= i;
                }
            }
        int i = 0;
        for (; i < tmp.size() - 1; ++i)
            cout << tmp[i] << " * ";
        cout << tmp[i] << endl;
    }
    return 0;
}